var swiper = new Swiper('.swiper-container', {
    slidesPerView: 1,
    spaceBetween: 30,
    // 环路启动
    loop: true,
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    },
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    // 自动播放
    autoplay:{
        delay:3000,
        stopOnLastSlide: false,
        disableOnInteraction: false,
        // 鼠标置入时停止自动切换
        pauseOnMouseEnter: true,
    },
    // 抓手
    grabCursor : true,
  });

//   自动切换
// var mySwiper = new Swiper('.swiper-container', {
//     autoplay:true,//等同于以下设置
//     /*autoplay: {
//       delay: 3000,
//       stopOnLastSlide: false,
//       disableOnInteraction: true,
//       },*/
//  });


